Skip to content

Validate arguments at the public API boundary - #95

Merged
destel merged 2 commits into
mainfrom
f/validate-args
Jul 26, 2026
Merged

Validate arguments at the public API boundary#95
destel merged 2 commits into
mainfrom
f/validate-args

Conversation

@destel

@destel destel commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Public functions now validate the arguments they are given: the concurrency level n, user-provided callbacks, and buffer/batch sizes. Invalid values panic synchronously at the call site, instead of failing silently (n = 0) or crashing a background goroutine (nil callback).

@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.22%. Comparing base (7e53a68) to head (f8496e8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   99.17%   99.22%   +0.05%     
==========================================
  Files          13       13              
  Lines         603      649      +46     
==========================================
+ Hits          598      644      +46     
  Misses          5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@destel
destel merged commit 1c3040d into main Jul 26, 2026
6 checks passed
@destel
destel deleted the f/validate-args branch July 26, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant